/*
 * @description: 
 * @Date: 2023-05-26 13:53:13
 * @example: 
 * @params: 
 */
import request from '@/config/axios.js'

const baseUrl = '/api'


/** 获取验证码 */
export async function GetAuthCodeAsync () {
    const res = await request({
        url: `${baseUrl}/Captcha`,
        method: "get",
    })
    return res
}

export async function LoginAsync (data) {
    const res = await request({
        url: `${baseUrl}/LoginSync`,
        method: "post",
        data
    })
    return res
}